package view;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.image.BufferedImage;
public class picTile extends JPanel{
    //ImageIcon imageicon;
    JLabel picLabel;
    picTile(BufferedImage image){
        picLabel = new JLabel(new ImageIcon(image));
        add(picLabel);
    }
    picTile(){
    }
    
    void setPicture(BufferedImage image){
        if(picLabel == null){
            picLabel = new JLabel(new ImageIcon(image));
            add(picLabel);
        }
        else{
            picLabel = new JLabel(new ImageIcon(image));
        }
    }
}
